{"ast":null,"code":"// handle border collapse\nfunction compactItemBorder(token, options) {\n  const childCombinator = options.borderElCls ? '> *' : '';\n  const hoverEffects = ['hover', options.focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n  return {\n    '&-item:not(&-last-item)': {\n      marginInlineEnd: -token.lineWidth\n    },\n    '&-item': Object.assign(Object.assign({\n      [hoverEffects]: {\n        zIndex: 2\n      }\n    }, options.focusElCls ? {\n      [`&${options.focusElCls}`]: {\n        zIndex: 2\n      }\n    } : {}), {\n      [`&[disabled] ${childCombinator}`]: {\n        zIndex: 0\n      }\n    })\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, options) {\n  const childCombinator = options.borderElCls ? `> ${options.borderElCls}` : '';\n  return {\n    [`&-item:not(&-first-item):not(&-last-item) ${childCombinator}`]: {\n      borderRadius: 0\n    },\n    '&-item:not(&-last-item)&-first-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartEndRadius: 0,\n        borderEndEndRadius: 0\n      }\n    },\n    '&-item:not(&-first-item)&-last-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartStartRadius: 0,\n        borderEndStartRadius: 0\n      }\n    }\n  };\n}\nexport function genCompactItemStyle(token) {\n  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    focus: true\n  };\n  return {\n    [`${token.componentCls}-compact`]: Object.assign(Object.assign({}, compactItemBorder(token, options)), compactItemBorderRadius(token.componentCls, options))\n  };\n}","map":{"version":3,"names":["compactItemBorder","token","options","childCombinator","borderElCls","hoverEffects","focus","filter","Boolean","map","n","join","marginInlineEnd","lineWidth","Object","assign","zIndex","focusElCls","compactItemBorderRadius","prefixCls","borderRadius","borderStartEndRadius","borderEndEndRadius","borderStartStartRadius","borderEndStartRadius","genCompactItemStyle","arguments","length","undefined","componentCls"],"sources":["/data/messenger.client/node_modules/antd/es/style/compact-item.js"],"sourcesContent":["// handle border collapse\nfunction compactItemBorder(token, options) {\n  const childCombinator = options.borderElCls ? '> *' : '';\n  const hoverEffects = ['hover', options.focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n  return {\n    '&-item:not(&-last-item)': {\n      marginInlineEnd: -token.lineWidth\n    },\n    '&-item': Object.assign(Object.assign({\n      [hoverEffects]: {\n        zIndex: 2\n      }\n    }, options.focusElCls ? {\n      [`&${options.focusElCls}`]: {\n        zIndex: 2\n      }\n    } : {}), {\n      [`&[disabled] ${childCombinator}`]: {\n        zIndex: 0\n      }\n    })\n  };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, options) {\n  const childCombinator = options.borderElCls ? `> ${options.borderElCls}` : '';\n  return {\n    [`&-item:not(&-first-item):not(&-last-item) ${childCombinator}`]: {\n      borderRadius: 0\n    },\n    '&-item:not(&-last-item)&-first-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartEndRadius: 0,\n        borderEndEndRadius: 0\n      }\n    },\n    '&-item:not(&-first-item)&-last-item': {\n      [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n        borderStartStartRadius: 0,\n        borderEndStartRadius: 0\n      }\n    }\n  };\n}\nexport function genCompactItemStyle(token) {\n  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    focus: true\n  };\n  return {\n    [`${token.componentCls}-compact`]: Object.assign(Object.assign({}, compactItemBorder(token, options)), compactItemBorderRadius(token.componentCls, options))\n  };\n}"],"mappings":"AAAA;AACA,SAASA,iBAAiB,CAACC,KAAK,EAAEC,OAAO,EAAE;EACzC,MAAMC,eAAe,GAAGD,OAAO,CAACE,WAAW,GAAG,KAAK,GAAG,EAAE;EACxD,MAAMC,YAAY,GAAG,CAAC,OAAO,E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